package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_employee_regularization")
@ApiModel(value = "员工转正申请")
public class EmployeeRegularization {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("申请人姓名")
    private String name;

    @ApiModelProperty("工号")
    private String employeeId;

    @ApiModelProperty("部门")
    private String department;

    @ApiModelProperty("入职日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate joiningDate;

    @ApiModelProperty("试用期(月)")
    private Integer trialPeriod;

    @ApiModelProperty("转正日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate regularizationDate;

    @ApiModelProperty("状态")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    @TableLogic
    @ApiModelProperty("是否删除")
    private Boolean isDeleted;
} 